package aop;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/*自动执行的方法,前置通知*/
public class Print implements MethodBeforeAdvice {
    @Override
    /*具体方法*/
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("前置通知");
    }
}
